package com.bdsy.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ErrorPageController extends BaseController{

	private final static String URL_500 = "error/500";
	private final static String URL_404 = "error/404";

	@RequestMapping(value = "/error_500")
	public ModelAndView error_500() {
		ModelAndView modelAndView = new ModelAndView();
		modelAndView.setViewName(URL_500);
		return modelAndView;
	}

	@RequestMapping(value = "/error_404")
	public ModelAndView error_404() {
		ModelAndView modelAndView = new ModelAndView();
		modelAndView.setViewName(URL_404);
		return modelAndView;
	}

}
